package a51qindian.com.comprehensive.city;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.jude.rollviewpager.RollPagerView;
import com.jude.rollviewpager.adapter.LoopPagerAdapter;

import a51qindian.com.comprehensive.R;

/**
 * Author: Li
 * Date: 2017/9/12 0012
 * Description:
 */

public class HeaderPagerAdapter extends LoopPagerAdapter {


    public HeaderPagerAdapter(RollPagerView viewPager) {
        super(viewPager);
    }

    @Override
    public View getView(ViewGroup container, int position) {
        ImageView imageView = new ImageView(container.getContext());
        imageView.setImageResource(R.drawable.banner);
        imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
        imageView.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
        return imageView;
    }



    @Override
    public int getRealCount() {
        return 5;
    }
}
